<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>yami</title>
		<script src="static/vconsole.min.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="app"></div>
		<!-- built files will be auto injected -->
	</body>
	<script src="static/pub.js" type="text/javascript" charset="utf-8"></script>
	<script>
		let auths = null;
		let payChannels = [];
		(function(doc, win) {
			var docEl = doc.documentElement,
				resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
				recalc = function() {
					var clientWidth = docEl.clientWidth;
					if(!clientWidth)
						return;
					docEl.style.fontSize = 75 * ((clientWidth > 750 ? 750 : clientWidth) / 750) + 'px';
				};
			if(!doc.addEventListener)
				return;
			win.addEventListener(resizeEvt, recalc, false);
			doc.addEventListener('DOMContentLoaded', recalc, false);
			// 微信登陆
			// 监听plusready事件  
			doc.addEventListener("plusready", function() {
				// 扩展API加载完毕，现在可以正常调用扩展API
				plus.oauth.getServices(function(services) {
					auths = services;
					console.log(JSON.stringify(services))
				}, function(e) {
					alert("获取分享服务列表失败：" + e.message + " - " + e.code);
				});
			}, false);
		})(document, window);
		// 初始化vConsole
window.vConsole = new window.VConsole({
defaultPlugins: ['system', 'network', 'element', 'storage'], // 可以在此设定要默认加载的面板
maxLogNumber: 1000,
// disableLogScrolling: true,
onReady: function() {
    console.log('vConsole is ready.');
},
onClearLog: function() {
    console.log('on clearLog');
}
});
console.info('欢迎使用 vConsole。vConsole 是一个由微信公众平台前端团队研发的 Web 前端开发者面板，可用于展示 console 日志，方便开发、调试。');
// 用于页面内展示顶部tips
var tipsTimer;
function showTips() {
tipsTimer && clearTimeout(tipsTimer);
$('#js_tips').show();
tipsTimer = setTimeout(function() {
    $('#js_tips').hide();
}, 1500);
}
	</script>

</html>